<?php


namespace app\plugins\goods\admin\validate;


class GoodsCatesValidate extends \app\admin\validate\AdminValidate
{
    protected $rule = [
        'title' => 'require|max:15|min:1',
        'sort' => 'number|min:0',
        'pid' => 'require|number',
    ];

    protected $message = [
        'title.require' => '请输入分类名称',
        'title.max' => '分类名不得超过15个字符',
        'title.min' => '分类名不得小于1个字符',
        'sort.number' => '排序值只能为整数',
        'sort.min' => '排序值最小为0',
        'pid.require' => '请选择一个上级',
        'pid.number' => '系统错误'
    ];


}